<?php
    $this->title = $title;
?>


<div class="msg">
<div class="weui_msg">
    <div class="weui_icon_area"><i class="weui_icon_success weui_icon_msg"></i></div>
    <div class="weui_text_area">
        <h2 class="weui_msg_title">下单成功</h2>
        <p class="weui_msg_desc">请及时支付，订单若未支付会在一天内取消</p>
    </div>
    <div class="weui_opr_area">
        <p class="weui_btn_area">
            <a id="showToast" class="weui_btn weui_btn_primary" href="javascript:;">立即支付</a>
            <a class="weui_btn weui_btn_default" href="javascript:;">暂不支付</a>
        </p>
    </div>
    <div style="display: none;" id="toast">
        <div class="weui_mask_transparent"></div>
        <div class="weui_toast">
            <i class="weui_icon_toast"></i>
            <p class="weui_toast_content">支付完成</p>
        </div>
    </div>
</div>
</div>

<script type="text/javascript" src="//cdn.bootcss.com/jquery/3.1.0/jquery.min.js"></script>
<script type="text/javascript">
    $('#showToast').click(function () {
    	    console.log(333)
                $('#toast').show();
                setTimeout(function () {
                    $('#toast').hide();
                    window.location.href = '/orders/list';
                }, 2000);
            });
</script>

